package com.tbs.parkingsaleapp.Http.Listenner;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.tbs.parkingsaleapp.Http.HttpHelper;
import com.tbs.parkingsaleapp.Http.IAsycHttpBackgroundAction;
import com.tbs.parkingsaleapp.Http.JsonData.AdResult;
import com.tbs.parkingsaleapp.SystemManager.NetWorkSetting;

import java.io.IOException;

public class ADHttper implements IAsycHttpBackgroundAction<String, AdResult[]> {
    @Override
    public AdResult[] BackGroundAction(String... params) throws Exception {
       String r= HttpHelper.Get(NetWorkSetting.ADUrl(4));
        return JSON.parseObject(r,AdResult[].class);
    }
}
